home *** CD-ROM | disk | FTP | other *** search
- property spr, txt
- property ativo
-
- on beginSprite me
- set spr = the spriteNum of me
- set txt = 87
- -- set the visibility of sprite spr to false
- set ativo = false
- set the locH of sprite spr to 94
- set the locH of sprite txt to -219
- end
-
- on cleanSprite me
- set the visibility of sprite spr to true
- global gPronde
- if gPronde <> 10000 then
- set the visibility of sprite 92 to true
- end if
- end
-
- on mouseUp me
- set ativo = not ativo
- if ativo then
- -- Ativa licenciadores
- set inicio = the timer
- set tempo = 20
- set the visibility of sprite 92 to false
- -- set the visibility of sprite spr to true
- updateStage
- set tmp = the timer
- repeat while tmp - inicio <= tempo
- set the locH of sprite spr to ¬
- (335 - 94) * (tmp - inicio) / tempo + 94
- set the locH of sprite txt to¬
- (335 - 93) * (tmp - inicio) / tempo - 227
- updateStage
- set tmp = the timer
- end repeat
- set the locH of sprite spr to 335
- set the locH of sprite txt to 15
- updateStage
- else
- -- Desativo licenciadores
- set inicio = the timer
- set tempo = 20
- set tmp = the timer
- repeat while tmp - inicio <= tempo
- set the locH of sprite spr to ¬
- (94 - 335) * (tmp - inicio) / tempo + 335
- set the locH of sprite txt to¬
- (93 - 335) * (tmp - inicio) / tempo + 15
- updateStage
- set tmp = the timer
- end repeat
- set the locH of sprite spr to 94
- set the locH of sprite txt to -227
- -- set the visibility of sprite spr to false
- set the visibility of sprite 92 to true
- updateStage
- end if
- end
-